<include file="./Tpl/Admin/header.html" />
<div class="main">
	<div class="main_title">
		<img src="/Public/Admin/images/book1.gif"/>&nbsp;&nbsp;邮件管理
	</div>
	<eq name="module" value="list">
	<div class="list_body">
	   	<table cellspacing=0 cellpadding=0 border=0>
		    <tr>
			   <th width="10%">类别</th><th width="10%">标题</th><th width="70%">内容</th><th width="10%">操作</th>
			</tr>
			<volist name="list" id="vo">
			<tr>
			   <td>{$vo.class}</td><td>{$vo.title|default='无'}</td><td>{$vo.content|default='无'}</td><td><a href="?s=Admin/Email/set/id/{$vo.id}">修改</a></td>
			</tr>
			</volist>
		</table>
	</div>
	<else/>
	<div class="main_body">
		<form action="?s=Admin/Email/update" method="post">
		<input type="hidden" name="id" value="{$id}"/>
		<table cellspacing=0 cellpadding=0 border=0>
		<tr><td>标题</td><td><input type="text" name="title" value="{$title}"/></td></tr>
		<tr>
			<td>内容</td>
			<td>
				<textarea name="content" cols=100 rows=20>{$content}</textarea> 地址代码：[url]
			</td>
		</tr>
		</table>
		<div><input type="submit" value="提交"/></div>
		</form>
    </div>
	</eq>
</div>
<include file="./Tpl/Admin/footer.html" />
<script language="javascript" src="/Public/plugin/kindeditor/jquery.tools.min.js"></script>
<script language="javascript" src="/Public/plugin/kindeditor/kindeditor-min.js"></script>
<script language="javascript" src="/Public/plugin/kindeditor/zh_CN.js"></script>
<script language=javascript>
	var editor;
	KindEditor.ready(function(K) {
		editor = K.create('textarea[name="content"]', {
			resizeType : 1,
			allowPreviewEmoticons : false,
			allowImageUpload : true,
			items : [
				'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|', 'image', 'link']
		});
	});
</script>